package rabbit.flt.plugins.springmvc.plugin;

import rabbit.flt.plugins.common.ControllerPathHelper;
import rabbit.flt.plugins.common.plugin.PerformancePlugin;

import java.lang.reflect.Method;

public class ControllerPlugin extends PerformancePlugin {

    @Override
    public Object[] before(Object target, Method method, Object[] args) {
        if (!isTraceOpened()) {
            return args;
        }
        ControllerPathHelper.fillSupportTraceData(method, target);
        return super.before(target, method, args);
    }

}
